package com.weiyu.bultrasound.core.dao;

import com.weiyu.bultrasound.core.model.entity.Applications;

import java.util.List;
import java.util.Map;

public interface ApplicationsMapper {

    int deleteById(Long id);

    int insert(Applications record);

    Applications getById(Long id);

    int updateById(Applications record);

    List<Applications> getList(Map param);

    int insertByBatch(List list);

    /**
     * @description  统计设备序列号的数量
     * @Param: [handultSn]
     * @Return: int
     * @Author: abner chow
     * @Date: 2019/8/13 15:33
     */
    int countByHandultSn( String handultSn );


    /**
     * @description 统计设备序列号的数量
     * @Param: [applyCode]
     * @Return: int
     * @Author: abner chow
     * @Date: 2019/8/22 14:56
     */
    int countByApplyCode(String applyCode);


    /**
     * @description 根据申请码更新
     * @Param: [record]
     * @Return: int
     * @Author: abner chow
     * @Date: 2019/8/22 15:23
     */
    int updateByApplyCode(Applications record);

}